//app.js
var http = require('utils/http.js');
var util = require('utils/util.js');
var siteInfo = require('siteinfo.js');

App({
  onLaunch: function (options) {
    var that = this;
    if (options.query.id) {
      wx.setStorageSync('qrcode_id', options.query.id);
    }
    wx.getSystemInfo({
      success: function (res) {
        that.systemInfo.windowHeight = res.windowHeight;
        that.systemInfo.windowWidth = res.windowWidth;
      }
    });
  },
  func: http,
  util: util,
  systemInfo: {
    windowHeight: null,
    windowWidth: null
  },
  userInfo: null,
  siteInfo: require('siteinfo.js'),

  app_id: siteInfo.acid,
})
